/**
 * @Description: 泛型和内部类
 * @Author Stark
 * @Date 2022/3/27 21:17
 **/
public class MyOutter <T>{
    //成员内部类
    private class Inner{
        public void test(T t2){
            System.out.println(t2);
        }
    }
    //静态内部类
    private static class Inner1<T>{
        public void fun(T t1){
            System.out.println(t1);
        }
    }

    public static void main(String[] args) {
        //有泛型参数时的定义
        //MyOutter<String>.Inner<Integer> inner = new MyOutter().new Inner();
        //无泛型参数的定义
        MyOutter<String>.Inner inner = new MyOutter().new Inner();

        inner.test("123");
        //inner.test(123);

        MyOutter.Inner1<Integer> inner1 = new Inner1<>();//
        inner1.fun(123);
    }
}
